package com.sxkf.template.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxkf.template.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-11-22 11:49:23
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    long typePageCount( Double longitude, Double latitude, String cateId, String storeType, String searchType);

    List<Product> typePage(Integer offset, Integer pageSize, Double longitude, Double latitude, String cateId, String storeType, String searchType);

    Page<Product> specialSale(Page<Product> page, BigDecimal price, String type);
}
